Get widgets working on the btree/buffer side. Display of them still
authorHavoc Pennington <hp@redhat.com>
Fri, 3 Nov 2000 20:40:57 +0000 (20:40 +0000)
committerHavoc Pennington <hp@src.gnome.org>
Fri, 3 Nov 2000 20:40:57 +0000 (20:40 +0000)
commitca83d0a3dcb6660cff67f61fca108b1b02c31859
treee3fc8cfe149cdfaac5adb2750c24c200c38e276a
parentb506b461cb03d4b3aac16f82298a5427f1baf759
Get widgets working on the btree/buffer side. Display of them still

2000-11-03  Havoc Pennington  <hp@redhat.com>

        Get widgets working on the btree/buffer side. Display of them
still doesn't work.

* gtk/gtktextview.c: start implementing child widget stuff

* gtk/gtktextiter.c (gtk_text_iter_get_child_anchor): new function

* gtk/gtktextlayout.c: handle embedded widgets

* gtk/gtktextdisplay.c: handle embedded widgets

* gtk/gtktextchild.c: Implement all the child anchor goo

* gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor): New
function

* gtk/gtktextbtree.c: Add child anchor table to the btree struct
(insert_pixbuf_or_widget_segment): abstract out common portions of
creating a child anchor or a pixbuf segment.
(gtk_text_btree_create_child_anchor): new function
(gtk_text_btree_unregister_child_anchor): new function

* gtk/gtkmarshal.list: added VOID:OBJECT,INT,INT for the
allocate_child signal on GtkTextLayout

* gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): fix bogus return
values
(gtk_text_iter_get_child_anchor): new function

* gtk/gtktextbuffer.c (gtk_text_buffer_real_changed): Add a
default handler for the changed signal, which calls
gtk_text_buffer_set_modified(), instead of just always emitting
changed then calling set_modified() manually. I guess this is
maybe more flexible. It seems logical.
22 files changed:
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkmarshal.list
gtk/gtkmarshalers.list
gtk/gtktextbtree.c
gtk/gtktextbtree.h
gtk/gtktextbuffer.c
gtk/gtktextbuffer.h
gtk/gtktextchild.c
gtk/gtktextchild.h
gtk/gtktextchildprivate.h
gtk/gtktextdisplay.c
gtk/gtktextiter.c
gtk/gtktextiter.h
gtk/gtktextlayout.c
gtk/gtktextlayout.h
gtk/gtktextview.c